//
//  UIGestureRecognizer+ClickBlock.h
//  tools
//
//  Created by hyjet on 2018/3/14.
//  Copyright © 2018年 tools. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^CWActionBlock)(id eventObj);

@interface UIGestureRecognizer (ActionBlock)

@property (nonatomic,copy) CWActionBlock block;

+(instancetype)cw_gestureWithActionBlock:(CWActionBlock)block;

- (void)cw_addActionBlock:(CWActionBlock)block;

@end


@interface UIButton(ActionBlock)

@property (nonatomic,copy) CWActionBlock block;

+(instancetype)cw_buttonWithActionEvents:(UIControlEvents)controlEvents Block:(CWActionBlock)block;

- (void)cw_addActionEvents:(UIControlEvents)controlEvents block:(CWActionBlock)block;

@end
